package com.singletonapps.evory.dao.impl;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.singletonapps.evory.dao.CourseTemaDao;
import com.singletonapps.evory.entities.CourseTema;

@Repository
public class CourseTemaDaoImpl implements CourseTemaDao {
	
	@Autowired
	private SessionFactory session;
	
	@Override
	public void createCourseTema(CourseTema cursoTema) {
		
		session.getCurrentSession().saveOrUpdate(cursoTema);
	}

}
